<?php
namespace app\providers\listener;


class SwooleTask 
{

    /**
     * 事件监听处理
     *
     * @return mixed
     */
    public function handle($event)
    {
        $task = $event->data[0];
        new $task( $event->data[1] );
    }


}
